package com.bdqn.struts.action;

import com.opensymphony.xwork2.ActionSupport;

import java.util.Date;
/*获取系统当前日期*/
public class DateAction extends ActionSupport {
    private Date currentDate;

    @Override
    public String execute() throws Exception {
        currentDate=new Date();
        return SUCCESS;
    }
    public Date getCurrentDate() {
        return currentDate;
    }

    public void setCurrentDate(Date currentDate) {
        this.currentDate = currentDate;
    }

}
